package day04;

import java.util.Scanner;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/15
 **/
public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请选择功能:1.存款 2.取款 3.转账 4.退出");
        int command = scan.nextInt();
        switch (command){
            case 1:
                System.out.println("存款成功");
                break;
            case 2:
                System.out.println("取款成功");
                break;
            case 3:
                System.out.println("转账成功");
                break;
            case 4:
                System.out.println("退卡成功");
                break;
            default:
                System.out.println("输入错误");
        }
        System.out.println("欢迎下次光临");


    }
}
